<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "rbac_resource_uri".
 *
 * @property int $id
 * @property int $resource_id 资源ID
 * @property string $uri URI
 * @property string $method 访问方法
 */
class RbacResourceUri extends \common\models\BaseCommonModel
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'rbac_resource_uri';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['resource_id'], 'integer'],
            [['uri'], 'string', 'max' => 255],
            [['method'], 'string', 'max' => 50],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'resource_id' => 'Resource ID',
            'uri' => 'Uri',
            'method' => 'Method',
        ];
    }
}
